cmdshell.cmd.ruby = {
	help : 'ruby emulator interpreter',
	run : function(res){
		cmdshell.debuger('[CMD] Ruby is running');
		
		var arr = res.split(" "), dataout = '...';
		
		if(!arr[1]){
			return 'Try ruby --version';
		}else{
			switch(arr[1]){
				case '--version':
					return 'ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]';
				break;
				case 'helloWorld.rb':
					return 'Hello World';
				break;
				default:
					return "ruby: No such file or directory -- "+arr[1]+" (LoadError)"
				break;
			}
			/*
			if(arr[1]=="apt-get"&&arr[2]=="install"&&arr[3]=="ruby1.9.1-full"){
					$.get('cmdout/installruby_out.txt', function(data) {
						$('.cmdout pre').last().html(data);
						 $('.mod-console .content').prop('scrollTop', $('.mod-console .content').prop('scrollHeight'));
					});
				return '...';
			}else{
				return 'Guest is not in the sudoers file. This incident will be reported.';			
			}*/
		}
	}
}

